package de.koller.so.gl.obj;

import de.koller.oceanFramework.gl.util.ParticleTexture;
import de.koller.oceanFramework.gl.util.TextureUtil;
import org.lwjgl.opengl.GL11;

public class BasicTexture extends Texture {

	private String filename;

	public BasicTexture( String filename ) {
		this.filename = filename;
	}
	
	@Override
	protected ParticleTexture generate() {
		ParticleTexture.MAG_FILTER = GL11.GL_LINEAR;
		ParticleTexture.MIN_FILTER = GL11.GL_LINEAR;
		TextureUtil.MAG_FILTER = GL11.GL_LINEAR;
		return TextureUtil.loadTexture( filename );
	}
	
}
